package com.william.jdbcplus.core.conditions.criterion;

import java.io.Serializable;

/**
 * Group By 片段
 *
 * @author niliwei
 */
public interface GroupBy<Wrap, R> extends Serializable {

    /**
     * 分组：GROUP BY 字段
     * <p>例: groupBy("id")</p>
     *
     * @param column
     * @return
     */
    Wrap groupBy(R column);

    /**
     * 分组：GROUP BY 字段, ...
     * <p>例: groupBy("id", "name")</p>
     *
     * @param columns 字段数组
     * @return children
     */
    Wrap groupBy(R... columns);
}
